//
//  STMeTabViewController.m
//  STBasicsApp
//
//  Created by jerry on 2019/5/6.
//  Copyright © 2019 jerry. All rights reserved.
//

#import "STMeTabViewController.h"
#import "STSetingViewController.h"


@interface STMeTabViewController ()

@end

@implementation STMeTabViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configNav];
    self.navigationItem.title = ASLocalizedString(@"我的");
}

- (void)configNav{
    
    UIButton * setBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [setBtn setImage:[UIImage imageNamed:@"st_icon_nav_setting"] forState:UIControlStateNormal];
    [setBtn addTarget:self action:@selector(navSetAction:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem * setBtnItem = [[UIBarButtonItem alloc]initWithCustomView:setBtn];
    
    self.navigationItem.rightBarButtonItems = @[setBtnItem];
}


#pragma mark - Action

- (void)navSetAction:(UIButton *)sender{
    STSetingViewController * vc = [[STSetingViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
